# -*- coding: utf-8 -*-

# File Name： get_external_truck_number_result
# Description :
# Author : lirui
# create_date： 2022/6/10
# Change Activity:
import time

import requests

# ip = '127.0.0.1'


ip = '10.123.31.152'

a = [{"check_correct": "False", "result": "", "time": "2022-06-11 18:16:51", "camera_ip": "10.123.31.134", "image_name": "_2022-06-11-18-16-51.jpg",
      "version": "NANTONG_BATE_20220607"},
     {"check_correct": "False", "result": "", "time": "2022-06-11 18:16:51", "camera_ip": "10.123.31.144", "image_name": "_2022-06-11-18-16-51.jpg",
      "version": "NANTONG_BATE_20220607"}]


def main():
    for i in range(100):
        time.sleep(1)
        res = requests.post(url=rf'http://{ip}:8080/car_num/get_image')
        print(res.text)


if __name__ == '__main__':
    main()
